/**
 * Created by Lenovo on 2015/09/20.
 */

var long2datestr = function(ms) {
    var date = new Date(ms);
    return data.toLocaleString();
}

function add0(m){return m<10?'0'+m:m }
function formatDate(timestamp)
{
//shijianchuo���������ҪparseIntת��
    var time = new Date(timestamp);
    var y = time.getFullYear();
    var m = time.getMonth()+1;
    var d = time.getDate();
    var h = time.getHours();
    var mm = time.getMinutes()+1;
    var s = time.getSeconds();
    return y+'/'+add0(m)+'/'+add0(d)+' '+add0(h)+':'+add0(mm);
}
